package flca.osm.perst.util;

public enum StatisticsHelper
{
	INSTANCE;
	
	private static int SHOW_COUNT = 10000;
	
	private int nNodes = 0;
	private int nWays = 0;
	
	public void incNodes() {
		nNodes++;
		if (nNodes % SHOW_COUNT == 0) {
			System.out.println("node: "  + nNodes);
		}
	}

	public void incWays() {
		nWays++;
		if (nWays % SHOW_COUNT == 0) {
			System.out.println(" way: " + nWays);
		}
	}

	public int getNodesCount() {
		return nNodes;
	}

	public int getWaysCount() {
		return nWays;
	}
}
